package com.edu.bhu.admin.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.edu.bhu.common.annotation.Excel;
import com.edu.bhu.common.core.domain.BaseEntity;

/**
 * 单车对象 bik_bicycle
 * 
 * @author heyinan
 * @date 2022-03-14
 */
public class BikBicycle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 单车唯一标识 */
    private Long bikId;

    /** 单车名称 */
    @Excel(name = "单车名称")
    private String name;

    /** 单车介绍 */
    @Excel(name = "单车介绍")
    private String introduce;

    /** 单车价格（每小时） */
    @Excel(name = "单车价格", readConverterExp = "每=小时")
    private BigDecimal price;

    /** 单车类型 1.单车 2.电车 */
    @Excel(name = "单车类型 1.单车 2.电车")
    private Long type;

    /** 单车位置 */
    @Excel(name = "单车位置")
    private String location;

    /** 出租状态 1.未出租 2.正在出租 */
    @Excel(name = "出租状态 1.未出租 2.正在出租")
    private Long rentStatus;

    /** 单车状态 1.正常 2.停用 */
    @Excel(name = "单车状态 1.正常 2.停用")
    private Long status;

    /** 删除标志（0代表存在 2代表删除） */
    private Long delFlag;

    /** 更新日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    /** 单车第一张图片 */
    private BikImages bikImages;



    public void setBikId(Long bikId) 
    {
        this.bikId = bikId;
    }

    public Long getBikId() 
    {
        return bikId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setIntroduce(String introduce) 
    {
        this.introduce = introduce;
    }

    public String getIntroduce() 
    {
        return introduce;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setRentStatus(Long rentStatus) 
    {
        this.rentStatus = rentStatus;
    }

    public Long getRentStatus() 
    {
        return rentStatus;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDelFlag(Long delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Long getDelFlag() 
    {
        return delFlag;
    }
    public void setUpdateDate(Date updateDate) 
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() 
    {
        return updateDate;
    }

    public BikImages getBikImages() {
        return bikImages;
    }

    public void setBikImages(BikImages bikImages) {
        this.bikImages = bikImages;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bikId", getBikId())
            .append("name", getName())
            .append("introduce", getIntroduce())
            .append("price", getPrice())
            .append("type", getType())
            .append("location", getLocation())
            .append("rentStatus", getRentStatus())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("updateDate", getUpdateDate())
            .toString();
    }
}
